package com.briup.pts.config.auth;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 25095
 * @description 用于维护用户与token数据的关系
 * @data 2024/11/26-10:12
 */
public class TokenMap {
    private static final Map<String,String> MAP =new HashMap<>();
    public static void setToken(String username,String token){
        MAP.put(username,token);
    }

    public static String getToken(String username){
        return MAP.get(username);
    }

     public static void  remove(String username){
        MAP.remove(username);
     }
}
